<?php
/**
 *产品采购信息模型
 */
class Application_Model_ProductPurchaseInfo extends Model_Base {

	/**
	 *获取一条产品采购信息模型
	 * @param  [type] $goodsSn sku
	 * @return [type]          [description]
	 */
	public function getOne($goodsSn, $field = "*") {
		$db = $this->db();
		$select = $db->select();
		$select->from('p_product_purchase_info', $field)->where("goods_sn =?", $goodsSn);
		return $db->fetchRow($select);
	}
}